import request from "@/utils/request";


// 菜单相关
export function MenuList(){
    return request.get("/management/menu/list")
}
export function MenuFirstList(){
    return request.get("/management/menu/list/first")
}
export function GetMenuList(data){
    return request.get("/management/menu/query",{params:data})
}
export function GetMenuShouquanList(){
    return request.get("/management/menu/query/shouquan")
}
export function MenuAdd(data){
    return request.post("/management/menu/add",data)
}

export function MenuListAuthor(){
    return request.get("/management/menu/list/author")
}
export function MenuFirstListAuthor(data){
    return request.get("/management/menu/list/first/author/"+data)
}


// 角色相关
export function RoleList(){
    return request.get("/role/list")
}
export function RoleAdd(data){
    return request.post("/role/add",data)
}
export function RoleDelete(data){
    return request.get("/role/delete/"+data)
}

//角色权限
export function RoleMenuAdd(data){
    return request.post("/role/menu/add",data)
}
